/**
 * 用户信息
 */
var mongoose = require('./db.js'),
    Schema = mongoose.Schema;

var UserSchema = new Schema({
    name: { type: String },                    //用户账号
    password: { type: String },                 //密码
    email: { type: String },                       //邮箱  
    age: { type: Number },                        //年龄
    created: { type: Date, default: Date.now }    //创建时间
});

module.exports = mongoose.model('User', UserSchema);